import { FMVCS } from "../../fgui/fmvc/FMVCS";
import ButtonTipsVO from "./ButtonTipsVO";
import { ConstDefine } from "../common/ConstDefine";

export default class ButtonTipsData extends FMVCS.FData {
    protected _vo: ButtonTipsVO = new ButtonTipsVO();
    get vo () {
        return this._vo;
    }

    setData(data: ConstDefine.Tips.ButtonTipsEventData){
        this.vo.text = data.text;
        this.vo.buttonNum = data.buttonNum;
        this.vo.btn1Text = data.btn1Text || this.vo.btn1Text;
        this.vo.btn1CallBack = data.btn1CallBack || this.vo.btn1CallBack;
        this.vo.btn2Text = data.btn2Text || this.vo.btn2Text
        this.vo.btn2CallBack = data.btn2CallBack || this.vo.btn2CallBack;
        this.vo.btn3Text = data.btn3Text || this.vo.btn3Text
        this.vo.btn3CallBack = data.btn3CallBack || this.vo.btn3CallBack;
    }
}